package com.attilax.dataspider;

import java.util.concurrent.*;  

import com.attilax.lang.Global;
public class MyThreadFactory implements ThreadFactory {  
    private final String poolName;  
  
    public MyThreadFactory(String poolName) {  
        this.poolName = poolName;  
    }  
  
    public Thread newThread(Runnable runnable) {  
    	
    //	java.util.concurrent.ThreadPoolExecutor
    	//java.util.concurrent.ThreadPoolExecutor$Worker@3cb0980d[State = -1, empty queue]
     	Thread td=new Thread(runnable);
    	td.setName("poolname:"+poolName+",trd:"+	Global.dbName.get());
        return  td;
    }

	private Thread MyAppThread(Runnable runnable, String poolName2) {
	    
		return null;
	}  
}  